﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using System.Data;

namespace BHair.bb
{
    public partial class XtraReportjh : DevExpress.XtraReports.UI.XtraReport
    {
        public XtraReportjh()
        {
            InitializeComponent();
        }
        public XtraReportjh(DataSet ds) 
        {
            InitializeComponent();
            SetDataBind(ds);
        }
        private void SetDataBind(DataSet ds) 
        {
            this.xrLabel11.Text = jinhuo.jinhuo.jsr;
            this.xrLabel5.Text = jinhuo.jinhuo.jhid;
            this.xrLabel3.Text = jinhuo.jinhuo.riqi;
            this.xrLabel16.Text = chuanzhi.userID;
            this.xrLabel19.Text = jinhuo.jinhuo.je;
            this.xrLabel18.Text = jinhuo.jinhuo.dxje + "元整";
            DataSource = ds;
            this.xrTableCell1.DataBindings.Add("Text", DataSource, "spid");
            this.xrTableCell2.DataBindings.Add("Text", DataSource, "spname");
            this.xrTableCell3.DataBindings.Add("Text", DataSource, "spjhj");
            this.xrTableCell4.DataBindings.Add("Text", DataSource, "spjhs");
            this.xrTableCell5.DataBindings.Add("Text", DataSource, "spjhje");
        }

    }
}
